Polysomnography with concomitant environment recording